package com.hzw.api;

import com.hzw.entity.ShoppingCar;

import java.util.List;

public interface IShoppingCarService {
    /**
     * 添加购物车
     * @param shoppingCar
     * @return
     */
    int insert (ShoppingCar shoppingCar);

    /**
     * 删除购物车
     * @param shoppingCar
     * @return
     */
    int delByUserId (ShoppingCar shoppingCar);

    /**
     * 添加修改购物车
     * @param shoppingCar
     */
    void addUpdate (ShoppingCar shoppingCar);

    /**
     * 修改购物车
     * @param shoppingCar
     */
    void update (ShoppingCar shoppingCar);

    /**
     * 查询购物车
     * @param shoppingCar
     * @return
     */
    List<ShoppingCar> selectByUserId(ShoppingCar shoppingCar);

}
